home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1
/
Ian and Stuart's One (Australia).iso
/
Australasian Legends
/
Commercial
/
Rainbow Hill
/
MacDOS™ 2.0.0
/
User's Guide
/
12 Getting Info
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
50 lines
12 Getting Info
In the previous sections you have already encountered
several commands which give you information on your system
and MacDOS. DATE, PROMPT, SHOW, TIME, and VOL all fall into
this category. This section completes the list of such
commands.
MacDOS Version
You can find out what version of MacDOS you are running by
executing the command VER. This is part of the information
that you get when the Finder displays the Info box of the
MacDOS application file.
Additionally, VER also displays your MacDOS licence number.
On-line Help
When you type the command HELP with a command name as
argument, MacDOS displays a brief summary of the command,
its parameters, and its switches. You obtain the same
result if you execute any command with the switch /? .
HELP without parameters displays one line of description
for each command, while HELP followed by a question mark
lists the command names.
Keeping Track of MacDOS
You can direct MacDOS to keep a log of the commands it
executes. You only need to type: log logFileSpec . MacDOS
then stores each command that you execute into a new line
of the log file. This continues until you execute the
command LOG without parameters.
Such a file is very useful to trace the execution of
complex batch programs, especially during the debugging
phase.
The logging mechanism can also be used to generate batch
files:
• LOG a series of commands;
• edit the log file to remove unnecessary lines and to
update some commands;
• change the creator from 'ttxt' to 'mDOS'. (you don't
need to do this if the system variable CREATOR is set to
'mDOS').
When used in this way, the LOG command operates like the
macro collection mechanism common to many applications.
If you add the switch /O , LOG stores into the log file the
output of the commands as well as the commands themselves.